package androidchat.com.view;

import com.androidchat.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import androidchat.com.common.FriendEntity;

public class Haoyou_info_Activity extends Activity {
	 public FriendEntity fe;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE); 
		setContentView(R.layout.activity_haoyou_info_);
		initdata();
	}

	public void initdata(){
		Intent in=getIntent();
		fe=(FriendEntity)in.getSerializableExtra("friendentity");
		TextView title=(TextView)findViewById(R.id.haoyou_info_title);
		TextView fa=(TextView)findViewById(R.id.fac);
		TextView fr=(TextView)findViewById(R.id.fre);
		TextView fd=(TextView)findViewById(R.id.fdes);
		title.setText(fe.getFnick());
		fa.setText(fe.getFaccount());
		fd.setText(fe.getFdes());
		fr.setText(fe.getFnick());
		Button back=(Button)findViewById(R.id.back_button);
		back.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				finish();
			}
			
		});
	}
	

}
